<!-- THREE STEPS TO INSTALL LINK WHEEL: 1. Paste the coding into the HEAD of your HTML document 2. Use the pattern: url~Site Title|Description for the links 3. Copy the second code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available online from --> <!-- The JavaScript Source!! http://javascriptsource.com --> <!-- Begin <script language="JavaScript"> <!-- Begin function makeArray(q){ for(i=1 ; i < q ; i++){this[i]=0}} w=1; howmanysites=4; // How many sites are listed below? Sites = new makeArray(howmanysites); <!-- STEP TWO: Use the pattern: url~Site Title|Description for links --> Sites[1] = "http://javascriptsource.com~The JavaScript Source|Click for great JavaScripts!"; Sites[2] = "http://www.geocities.com~Geocities|Click for totally free webspace!"; Sites[3] = "http://www.yahoo.com~Yahoo!|Click for the greatest Search Engine!"; Sites[4] = "http://www.builder.com~Builder.com|Click for awesome webmaster resources!"; function showSites() { if (w > howmanysites) { w=1; }; var string=Sites[w] + ""; var split1=string.indexOf("~"); var split2=string.indexOf("|"); var url=string.substring(0,split1); var name=string.substring(split1 + 1,split2); var word=string.substring(split2 + 1,string.length); document.form.url.value=url; document.form.name.value=name; document.form.word.value=word; w+=1; window.setTimeout('showSites()',3000); // You can change the speed! 3000 = 3 sec delay. 5000 = 5 sec delay, etc. } function visitSite() { window.location=document.form.url.value; } // End --> </SCRIPT> <!-- STEP THREE: Add the final coding to the BODY tag of your HTML document --> <BODY> <center> <form name=form> <table><tr><td align=center> <input type=button name=name value="Visit these sites!" onClick="visitSite()" size=25> <input type=hidden name=url value=""> <input type=text name=word value="" size=40> </td></tr></table> </form> </center> <script> showSites(); </script> <!-- Script Size: 2.12 KB -->
1998 Copyright (C) Next Step All Rights Reserved